package com.my.dao;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.Admin;

public interface AdminDAO {
	Admin checkLogin(Admin admin);

	boolean isExist(String name);

	boolean addAdmin(Admin admin) throws Exception;

	boolean editAdmin(Admin admin) throws Exception;

	Admin getAdminById(Class<Admin> c, Integer id) throws Exception;

	boolean removeAdmin(Integer id) throws Exception;

	BigInteger getTotalAdminRecords() throws Exception;

	List<Admin> getAllAdminByPage(int pageindex, int pagesize) throws Exception;

	BigInteger searchTotalAdminRecords(Admin admin) throws Exception;

	List<Admin> searchAdminByPage(int pageindex, int pagesize, Admin admin)
			throws Exception;
}
